<template>
    <div>
        <h1 ref="hh">{{resData}}</h1>
        <button @click="changeShow">显示</button>
    </div>
</template>

<script>
export default {
  data() {
    return {
      show: false,
      resData:{}
    };
  },
  created(){
    this.changeShow()
  },
  methods: {
    async changeShow() {
      const { data:address } = await this.$http.get("/abc/ip?ak=HQi0eHpVOLlRuIFlsTZNGlYvqLO56un3&coor=bd09ll")
      this.resData = address
    }
  }
};
</script>

<style scoped>
</style>